import { sign, verify } from 'jsonwebtoken';

const SECRET = 'qwertyuiop';
export function signToken(data: Record<string, any> | Array<any>) {
  return sign(data, SECRET);
}

export function verifyToken(data: string) {
  return verify(data, SECRET);
}
